/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../../model/baseModel';

const { adminPath } = useGlobSetting();

export interface CarddClyj extends BasicModel<CarddClyj> {
  carCode?: string; // 车牌号
  carType?: string; // 品牌型号
  driverName?: string; // 司机
  ddate?: string; // 日期
  syDay?: string; // 剩余天数
  nextKM?: string; // 下次保养公里数
  currKM?: string; // 当前行驶公里
  syKM?: string; // 剩余公里
}

export const byyjListData = (params?: CarddClyj | any) =>
  defHttp.post<Page<CarddClyj>>({ url: adminPath + '/cardd/order/carddYcdd/byyjListData', params });

export const njyjListData = (params?: CarddClyj | any) =>
  defHttp.post<Page<CarddClyj>>({ url: adminPath + '/cardd/order/carddYcdd/njyjListData', params });

export const tbyjListData = (params?: CarddClyj | any) =>
  defHttp.post<Page<CarddClyj>>({ url: adminPath + '/cardd/order/carddYcdd/tbyjListData', params });

export const wzyjListData = (params?: CarddClyj | any) =>
  defHttp.post<Page<CarddClyj>>({ url: adminPath + '/cardd/order/carddYcdd/wzyjListData', params });
